package com.geeguo.ebuilder.client.business.system.organization.model;

import com.geeguo.ebuilder.core.common.model.converter.DateLongMapper;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper(uses = DateLongMapper.class)
public interface OrganizationConverter {

    OrganizationConverter INSTANCE = Mappers.getMapper(OrganizationConverter.class);

    OrganizationVO convert2VO(OrganizationEntity entity);
    OrganizationCO convert2CO(OrganizationEntity entity);

    OrganizationEntity convert2Entity(OrganizationCreateDTO dto);
    OrganizationEntity convert2Entity(OrganizationUpdateDTO dto);
}
